package com.travelgroup.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.travelgroup.enums.RefundStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class RefundRecord {
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "订单id")
    private Long orderId;

    @Schema(description = "退款单号")
    private String refundNo;

    @Schema(description = "退款金额")
    private BigDecimal refundAmount;

    @Schema(description = "退款原因")
    private String refundReason;

    @Schema(description = "退款状态")
    private RefundStatus refundStatus; // 0-申请中,1-退款成功,2-退款失败

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}